<template>
  <div class="container">
    <topTitle
      :titleText="titleText"
      :back="true"
      @gobackTriser="goBack"
    ></topTitle>
    <div class="mainCon">
      <div class="infoBox">
        <el-row class="elrow" type="flex">
          <el-col :span="6" class="desc elcol"><span>单位名称</span></el-col>
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.dwname }}</span></el-col
          >
          <el-col :span="6" class="desc elcol"
            ><span>统一信用代码</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.xydm }}</span></el-col
          >
        </el-row>
        <el-row class="elrow" type="flex">
          <el-col :span="6" class="desc elcol"><span>填报年份</span></el-col>
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.year }}</span></el-col
          >
          <el-col :span="6" class="desc elcol"><span>单位类型</span></el-col>
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.dwlx }}</span></el-col
          >
        </el-row>
        <el-row class="elrow" type="flex">
          <el-col :span="6" class="desc elcol"><span>单位性质</span></el-col>
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.dwxz }}</span></el-col
          >
          <el-col :span="6" class="desc elcol"><span>行业类别</span></el-col>
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.hylb }}</span></el-col
          >
        </el-row>
        <el-row class="elrow" type="flex">
          <el-col :span="6" class="desc elcol"><span>管辖类别</span></el-col>
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.gxlb }}</span></el-col
          >
          <el-col :span="6" class="desc elcol"
            ><span>是否有下属企业</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.sfyxsqy }}</span></el-col
          >
        </el-row>
        <el-row class="elrow" type="flex">
          <el-col :span="6" class="desc elcol"><span>法人姓名</span></el-col>
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.frxm }}</span></el-col
          >
          <el-col :span="6" class="desc elcol"
            ><span>法人联系方式</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.frphone }}</span></el-col
          >
        </el-row>
        <el-row class="elrow" type="flex">
          <el-col :span="6" class="desc elcol"
            ><span>法人证件号码</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.frsfzhm }}</span></el-col
          >
          <el-col :span="6" class="desc elcol"
            ><span>法人办公电话</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.frofficphone }}</span></el-col
          >
        </el-row>
        <el-row class="elrow" type="flex">
          <el-col :span="6" class="desc elcol"
            ><span>劳资部门负责人姓名</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.lzfzr }}</span></el-col
          >
          <el-col :span="6" class="desc elcol"
            ><span>劳资部门负责人移动电话</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.lzphone }}</span></el-col
          >
        </el-row>
        <el-row class="elrow" type="flex">
          <el-col :span="6" class="desc elcol"
            ><span>年末职工人数</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.zgNmzgrs }}</span></el-col
          >
          <el-col :span="6" class="desc elcol"
            ><span>在岗职工人数</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.zgZgzgrs }}</span></el-col
          >
        </el-row>
        <el-row class="elrow" type="flex">
          <el-col :span="6" class="desc elcol"
            ><span>签订劳动合同人数</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.htGdhtrs }}</span></el-col
          >
          <el-col :span="6" class="desc elcol"
            ><span>有无签订集体合同</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.htIsjtht }}</span></el-col
          >
        </el-row>
        <el-row class="elrow" type="flex">
          <el-col :span="6" class="desc elcol"
            ><span>参建用工备案人数</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.htYgbars }}</span></el-col
          >
          <el-col :span="6" class="desc elcol"><span>农民工人数</span></el-col>
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.nmgrs }}</span></el-col
          >
        </el-row>
        <el-row class="elrow" type="flex">
          <el-col :span="6" class="desc elcol"
            ><span>年度工资总额（万元）</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.bcGzze }}</span></el-col
          >
          <el-col :span="6" class="desc elcol"
            ><span>是否违反最低工资标准</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.bcIszdgz }}</span></el-col
          >
        </el-row>
        <el-row class="elrow" type="flex">
          <el-col :span="6" class="desc elcol"
            ><span>执行标准工时制人数</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.gsZxgsrs }}</span></el-col
          >
          <el-col :span="6" class="desc elcol"
            ><span>特殊工时是否批报</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.gsIssh }}</span></el-col
          >
        </el-row>
        <el-row class="elrow" type="flex">
          <el-col :span="6" class="desc elcol"
            ><span>社会保险保地</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.bxCbd }}</span></el-col
          >
          <el-col :span="6" class="desc elcol"
            ><span>上年度参保人数</span></el-col
          >
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.bxCbrs }}</span></el-col
          >
        </el-row>
        <el-row class="elrow" type="flex">
          <el-col :span="6" class="desc elcol"><span>参保项目</span></el-col>
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.bxCbxm }}</span></el-col
          >
          <el-col :span="6" class="desc elcol"><span>填报人</span></el-col>
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.tbName }}</span></el-col
          >
        </el-row>
        <el-row class="elrow" type="flex">
          <el-col :span="6" class="desc elcol"><span>填报人电话</span></el-col>
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.tbPhone }}</span></el-col
          >
          <el-col :span="6" class="desc elcol"><span>审核状态</span></el-col>
          <el-col :span="6" class="descValue elcol"
            ><span>{{ infoDetail.shzt }}</span></el-col
          >
        </el-row>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'writtenReviewDetail',
  data() {
    return {
      titleText: '书面审查详情',
      infoDetail: {},
    }
  },
  async mounted() {
    this.infoDetail = this.$route.query.row
      ? JSON.parse(this.$route.query.row)
      : {}
  },
  methods: {
    //返回
    goBack() {
      const { companyId, companyName, uscc } = this.$route.query
      this.$router.push({
        path: '/home/enterpriseArchives/enterpriseData',
        name: 'enterpriseData',
        query: {
          activeName: 'fourth',
          companyId,
          companyName,
          uscc,
        },
      })
      this.$store.commit('GOBACK_NAME', {
        oldUrl: '/home/enterpriseArchives/enterpriseList',
        newUrl: this.$router.currentRoute.fullPath,
      })
    },
  },
}
</script>

<style lang="less" scoped>
.container {
  .mainCon {
    height: calc(100% - 67px);
    overflow-y: auto;
    padding: 24px;
    background: #f5f7fa;
    .infoBox {
      // height: 100%;
      padding: 24px 30px;
      background-color: #fff;
      .elrow {
        .elcol {
          display: table;
          padding: 12px;
          height: 50px;
          text-align: center;
          border-top: 1px solid #777;
          border-left: 1px solid #777;
          &:last-child {
            border-right: 1px solid #777;
          }
          span {
            display: table-cell;
            vertical-align: middle;
            line-height: 20px;
          }
        }
        .desc {
          background-color: #eee;
        }
        &:last-child {
          border-bottom: 1px solid #777;
        }
      }
    }
  }
}
</style>
